package com.zp.demo.repush.exception;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zp.demo.repush.service.func.ReSubmitResultFunc;
import com.zp.demo.repush.vo.BaseRePushVo;
import lombok.Data;

/**
 * 说明：
 *
 * @auther 张鹏
 * @create
 */
@Data
public class RePushException extends RuntimeException {
    private BaseRePushVo rePushVo;
    @JsonIgnore
    private ReSubmitResultFunc reSubmitResultFunc;
    private String message ;
    //无参构造方法
    public RePushException(){
        super();
    }
    public RePushException(BaseRePushVo rePushVo){
        super();
        this.rePushVo = rePushVo;
    }
    public RePushException(BaseRePushVo rePushVo,ReSubmitResultFunc reSubmitResultFunc){
        super();
        this.rePushVo = rePushVo;
        this.reSubmitResultFunc = reSubmitResultFunc;
    }

    //有参的构造方法
    public RePushException(String message){
        super(message);
    }
    // 用指定的详细信息和原因构造一个新的异常
    public RePushException(String message, Throwable cause){
        super(message,cause);
    }
    //用指定原因构造一个新的异常
    public RePushException(Throwable cause) {
        super(cause);
    }
}
